#define _CRT_SECURE_NO_WANINGS 1
#pragma warning(disable: 4996)
#include<stdio.h>
#include<string.h>
////#include < stdio.h >
////struct S
////{
////	int a;
////	int b;
////};
////int main()
////{
////	struct S a, * p = &a;
////	a.a = 99;
////	printf("%d\n",(*p).a);
////	return 0;
////}
////struct stu
////{
////	int num;
////	char name[10];
////	int age;
////};
////
////void fun(struct stu* p)
////{
////	printf("%s\n", (*p).name);
////	return;
////}
////
////int main()
////{
////	struct stu students[3] = { {9801,"zhang",20},
////							 {9802,"wang",19},
////					{9803,"zhao",18} };
////	fun(students + 1);
////	return 0;
////}
////#include <stdio.h>
//
////int main() {
////    for (int i = 10000; i < 100000; i++)
////    {
////        int a = (i / 10) * (i % 10);
////        int b = (i / 100) * (i % 100);
////        int c = (i / 1000) * (i % 1000);
////        int d = (i / 10000) * (i % 10000);
////        if (a + b + c + d == i)
////        {
////            printf("%d ", i);
////        }
////
////    }
////    return 0;
////}
////int main() {
////    int a = 0;
////    int b = 0;
////    int arr[50] = { 0 };
////    int p = 0;
////    int arr1[50] = { 0 };
////    scanf("%d", &a);
////    for (int i = 0; i < a; i++)
////    {
////        scanf("%d", &arr[i]);
////    }
////    scanf("%d", &b);
////    for (int j = 0; j < a; j++)
////    {
////        if (b != arr[j])
////        {
////            arr1[p++] = arr[j];
////        }
////
////    }
////    for (int i = 0; i < p; i++)
////    {
////        printf("%d ", arr1[i]);
////    }
////
////    return 0;
////}
//
//////int main()
//////{
//////	int i = 1;
//////	if ((char)i == 0)
//////	{
//////		printf("daduan");
//////	}
//////	else
//////	{
//////		printf("xiaoduan");
//////	}
//////	return 0;
//////}
////union xiaoma
////{
////	char a;
////	int b;
////};
////int main()
////{
////	union xiaoma m = { 0 };
////	union xiaoma* n = { 0 };
////	m.b = 1;
////	m.a = m.b;
////	printf("%d", m.a);
////	if (1 == m.a)
////	{
////		printf("daduan");
////	}
////	else
////	{
////		printf("xiaoduan");
////	}
////	return 0;
////}
//void* my_memmove(void* des, void* src, size_t num)
//{
//	void* p = des;
//	if (des <= src || (char*)des >= (char*)src+num)
//	{
//		
//		while (num--)
//		{
//			*((char*)des) = *((char*)src);
//			des = (char*)des + 1;
//			src = (char*)src + 1;
//		}
//
//	}
//	else
//	{
//		des = (char*)des + num - 1;
//		src	= (char*)src + num - 1;
//		while (num--)
//		{
//			*((char*)des) = *((char*)src);
//			des = (char*)des - 1;
//			src = (char*)src - 1;
//
//		}
//	}
//	return p;
//}
//
//int main()
//{
//	int arr[5] = { 1,2,3,4,5 };
//	int arr1[5] = { 0 };
//	my_memmove(arr, arr+1 , sizeof(int) * 2);
//	for (int i = 0; i < 5; i++)
//	{
//		printf("%d ", arr[i]);
//	}
//	return 0;
//}
//#define _CRT_SECURE_NO_WARNINGS
//
//#include <string.h>
//
//void* my_memmove(void* dest, const void* sour, size_t num)
//{
//	if (dest < sour)
//	{
//		for (int i = 0; i <= num; i++)
//		{
//			*((char*)dest + i) = *((char*)sour + i);
//		}
//		return dest;
//	}
//	else if (dest > sour)
//	{
//		for (int i = num; i >= 0; i--)
//		{
//			*((char*)dest + i) = *((char*)sour + i);
//		}
//		return dest;
//	}
//	else
//	{
//		return dest;
//	}
//}
//
//int main()
//{
//	int arr1[10] = { 1,2,3,4,5,6,7,8,9,10 };
//	int arr2[10] = { 0 };
//	my_memmove(arr1 + 2, arr1, 5 * sizeof(int));
//	for (int i = 0; i < 10; i++)
//	{
//		printf("%d ", arr1[i]);
//	}
//	return 0;
//}
